/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-17 20:48:08
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-25 09:01:17
 */
/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-17 20:48:08
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-18 10:01:49
 */
/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-17 20:48:08
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-17 21:03:19
 */

import type { RouteRecordRaw } from "vue-router";
import { Setting } from '@element-plus/icons-vue';

const routes: RouteRecordRaw[] = [
    //数据中心
    {
        path: '/information',
        redirect: '/information/salestrend',
        component: () => import('@/views/Information/index.vue'),
        meta: {
            menu: '数据中心',
            icon: "icon-shujuzhongxin",
        },
        children: [
            //销售趋势
            {
                path: '/information/salestrend',
                component: () => import('@/views/Information/Salestrend/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '数据中心' },
                        { title: '管理列表' },
                        { to: '/information/salestrend', title: '销售趋势' }
                    ],
                    menu: '销售趋势',
                    icon: "icon-hetongguanli",
                },
            },
            // 销售排行
            {
                path: '/information/salesranking',
                component: () => import('@/views/Information/Salesranking/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '数据中心' },
                        { title: '管理列表' },
                        { to: '/information/salesranking', title: '销售排行' }
                    ],
                    menu: '销售排行',
                      icon: "icon-hetongguanli",
                },
            },
            // 客户分析
            {
                path: '/information/customeranalysis',
                component: () => import('@/views/Information/Customeranalysis/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '数据中心' },
                        { title: '管理列表' },
                        { to: '/information/customeranalysis', title: '客户分析' }
                    ],
                    menu: '客户分析',
                      icon: "icon-hetongguanli",
                },
            },
            // 部门业绩
            {
                path: '/information/departmentperf',
                component: () => import('@/views/Information/Departmentperf/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '数据中心' },
                        { title: '管理列表' },
                        { to: '/information/departmentperf', title: '部门业绩' }
                    ],
                    menu: '部门业绩',
                    icon: "icon-hetongguanli",
                },
            },

        ]
    },
];

export default routes;
